const tou = document.querySelector(".in");
const mydong = document.querySelector(".mydong");


/*上传头像 */
tou.addEventListener("click",()=>{
    axios({
    method:"POST",
    baseURL:"http://49.235.224.185:8000",
    url:"/avatar/upload",
    headers:{
         Authorization:localStorage.getItem("token")
    },
    form_data:{
        avatar: './picture/闪电.png',
    }
})
.then((res)=>{
    console.log(res);
})
.catch((err)=>{
    console.log(err.data);
})
})
/*查看头像*/

/*我的动态 */
axios({
    method:"POST",
    baseURL:"http://49.235.224.185:8000",
    url:"/moment/mymoment",
    headers:{
         Authorization:localStorage.getItem("token")
    }
})
.then((res)=>{
    console.log(res);
})
